package com.orange.eduOrder.client;

import com.orange.commonutils.vo.EduCourseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author orange
 * @email orangestart@yeah.net
 * @create 2021-12-28 14:19
 */
@Component
@FeignClient(name = "service-edu")
public interface ServiceEduClient {

    //根据课程id，获取课程信息
    @PostMapping("/eduService/edu-course/getCourseInfoByIdOrder/{courseId}")
    EduCourseVo getCourseInfoByIdOrder(@PathVariable("courseId") String courseId);

}
